package com.yoda.mall.admin.service;

import com.yoda.mall.api.PreferenceAreaApi;
import com.yoda.mall.model.entity.cms.PreferenceArea;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shawn
 * @date 2022年 12月 18日 19:39
 */
@Service
public class PreferenceAreaService {

    @DubboReference
    private PreferenceAreaApi preferenceAreaApi;

    public List<PreferenceArea> getAllPreference() {
        return preferenceAreaApi.getAllPreference();
    }
}
